ActiveReports 12
Filter(String[],String,Boolean,CompareMethod) Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Strings Class > Filter Method : Filter(String[],String,Boolean,CompareMethod) Method
Required. One-dimensional array of strings to be searched.
Required. String to search for.
Optional. Boolean value indicating whether to return substrings that include or exclude match. If include is True, the Filter function returns the subset of the array that contains match as a substring. If include is False, the Filter function returns the subset of the array that does not contain match as a substring.
Optional. Numeric value indicating the kind of string comparison to use. See "Settings" for values.
Returns a zero-based array containing a subset of a String array based on specified filter criteria.
Syntax
'Declaration
 
Public Overloads Shared Function Filter( _
   ByVal source() As String, _
   ByVal match As String, _
   Optional ByVal include As Boolean, _
   Optional ByVal compare As CompareMethod _
) As String()
public static string[] Filter( 
   string[] source,
   string match,
   bool include,
   CompareMethod compare
)

Parameters

source
Required. One-dimensional array of strings to be searched.
match
Required. String to search for.
include
Optional. Boolean value indicating whether to return substrings that include or exclude match. If include is True, the Filter function returns the subset of the array that contains match as a substring. If include is False, the Filter function returns the subset of the array that does not contain match as a substring.
compare
Optional. Numeric value indicating the kind of string comparison to use. See "Settings" for values.

Return Value

Returns a zero-based array containing a subset of a String array based on specified filter criteria.
See Also

Reference

Strings Class
Strings Members
Overload List